//
//  Utils.h
//  MeicaiCrm
//
//  Created by zhou jianbang on 2019/4/16.
//  Copyright © 2019 meicai. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Utils : NSObject

/**
 * 创建按钮
 */
+(UIButton *)createBtn:(NSDictionary *)btnDict;

/**
 * 获取对齐方式
 */
+(NSTextAlignment)jsonToTextAlign:( NSString *)align;

/**
 * 设置边线
 */
+ (void)setBorderWithView:(UIView *)view top:(BOOL)top left:(BOOL)left bottom:(BOOL)bottom right:(BOOL)right borderColor:(UIColor *)color borderWidth:(CGFloat)width;

/**
 * 数据转换
 */
+(NSDictionary *)stringToJson:(NSString *)jsonString;

@end

NS_ASSUME_NONNULL_END
